import React from 'react';
import { Login, NotFound, User, Admin, Role, Individual} from "@/pages";
import {
    HomeOutlined,
    TeamOutlined,
    UserSwitchOutlined,
    SafetyCertificateOutlined,
} from "@ant-design/icons";




const commonRoutes = [
    {
        pathName: '/login',
        component: Login
    },
    {
        pathName: '/404',
        component: NotFound
    }

]

const privateRoutes = [
    {
        name: "首页",
        pathName: "/admin",
        icon: <HomeOutlined/>,
        component: Admin,
        isShow: true,
        id:1
    },
    {
        pathName: '/admin/user',
        name: "系统管理",
        icon: <SafetyCertificateOutlined />,
        component: null,
        isFirst: true,
        id: 2,
        children: [
            {
                pathName: '/admin/user/user',
                name: "用户列表",
                icon: <TeamOutlined />,
                component: User
            },
            {
                pathName: '/admin/user/role',
                name: "权限管理",
                icon: <UserSwitchOutlined />,
                component: Role
            },
        ]
    },
]

const hideRoutes = [
    {
        pathName: '/admin/individual',
        component: Individual,
    },
]       

export {
    commonRoutes,
    privateRoutes,
    hideRoutes
}
